package websocket;

import org.json.JSONException;
import org.json.JSONObject;

import websocket.websocket_adapter.status;

public class ws_login_req 
{
	private JSONObject m_json = new JSONObject();
	public ws_login_req(String sessionID)
	{
		try 
		{
			JSONObject action = new JSONObject();
			action.put("id","normal");
			action.put("code","login");
			action.put("type","req");
			
			JSONObject params = new JSONObject();
			params.put("sessionId",sessionID);
			
			m_json.put("action", action);
			m_json.put("params", params);
		} catch (JSONException e1) 
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return;
		}
	}
	public JSONObject getJSON()
	{
		return this.m_json;
	}
}
